From 6ec19a6953aae3808f29fc9d1de479b9d3b79ddd Mon Sep 17 00:00:00 2001 From: Matthew Leeds Date: Fri, 25 May 2018 18:01:35 -0700 Subject: [PATCH] find-remotes: Fix unused variable warnings Closes: #1605 Approved by: cgwalters --- src/ostree/ot-builtin-find-remotes.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ostree/ot-builtin-find-remotes.c b/src/ostree/ot-builtin-find-remotes.c index 77b7a8da..f255501a 100644 --- a/src/ostree/ot-builtin-find-remotes.c +++ b/src/ostree/ot-builtin-find-remotes.c @@ -179,14 +179,15 @@ ostree_builtin_find_remotes (int argc, g_autoptr(GPtrArray) finders = NULL; /* (element-type OstreeRepoFinder) */ g_autoptr(OstreeRepoFinder) finder_config = NULL; g_autoptr(OstreeRepoFinder) finder_mount = NULL; +#ifdef HAVE_AVAHI g_autoptr(OstreeRepoFinder) finder_avahi = NULL; +#endif /* HAVE_AVAHI */ g_autoptr(OstreeAsyncProgress) progress = NULL; gsize i; g_autoptr(GAsyncResult) find_result = NULL, pull_result = NULL; g_auto(OstreeRepoFinderResultv) results = NULL; g_auto(GLnxConsoleRef) console = { 0, }; g_autoptr(GHashTable) refs_found = NULL; /* set (element-type OstreeCollectionRef) */ - g_auto(GStrv) finders_strings = NULL; context = g_option_context_new ("COLLECTION-ID REF [COLLECTION-ID REF...]"); -- 2.30.2